<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-03-10 23:27:20
 * @LastEditTime: 2022-09-19 16:23:05
 * @LastEditors: CHINAKAIYUAN
 * @Description: 
 */

namespace App\Http\Validates\System;

class UserValidate
{

    public function register()
    {
        $rules = ['phone' => "required|mobile"];
        $messages = [
            'mobile' => '手机号错误！',
            'required' => '手机号必填'
        ];
        return [$rules, $messages];
    }
    public function getPhoneCode()
    {
        return $this->register();
    }

    public function userTokenDelete()
    {
        $rules = ['id' => "required"];
        $messages = [
            'required' => '参数错误'
        ];
        return [$rules, $messages];
    }
}
